<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<form action="add" method="post" enctype="multipart/form-data">
    @csrf
    @if ($errors->any())
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif
    <table>
        <tr>
            <td>
                球队名称：<input type="text" name="name" placeholder="请输入球队名称">
            </td>
        </tr>
        <tr>
            <td>
                球队场数：<input type="text" name="number" placeholder="请输入球队场数">
            </td>
        </tr>
        <tr>
            <td>
                球队胜率：<input type="text" name="numberState" placeholder="请输入球队胜率">
            </td>
        </tr>
        <tr>
            <td>
                球队图片：<input type="file" name="image">
            </td>
        </tr>
        <tr>
            <td>
                <input type="submit" value="添加">
            </td>
        </tr>
    </table>
</form>
</body>
</html>
